package com.mata.worktime.vo.statistics;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.util.Date;


/**
 * 用户详情
 *
 * @author earthchen
 * @date 2018/10/22
 **/
@ExcelTarget("userDetail")
public class UserDetailVO implements java.io.Serializable
{

    @Excel(name = "用户名",width = 20)
    private String username;

    @Excel(name = "项目名",width = 20)
    private String projectName;

    @Excel(name = "任务信息",width = 40)
    private String remark;

    @Excel(name = "审核信息",width = 40)
    private String  reviewFlag;

    @Excel(name = "工时",type = 10,width = 20)
    private Float workhours;

    @Excel(name = "工作日期", exportFormat = "yyyy-MM-dd",width =50)
    private Date workDate;

    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getProjectName()
    {
        return projectName;
    }

    public void setProjectName(String projectName)
    {
        this.projectName = projectName;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public Float getWorkhours()
    {
        return workhours;
    }

    public void setWorkhours(Float workhours)
    {
        this.workhours = workhours;
    }

    public Date getWorkDate()
    {
        return workDate;
    }

    public void setWorkDate(Date workDate)
    {
        this.workDate = workDate;
    }

    public String getReviewFlag() {
        return reviewFlag;
    }

    public void setReviewFlag(String reviewFlag) {
        if(reviewFlag.equals("0")){
            this.reviewFlag = "未审核";
        }else if(reviewFlag.equals("1")){
            this.reviewFlag = "审核通过";
        }else if(reviewFlag.equals("2")){
            this.reviewFlag = "审核失败";
        }
    }

    @Override
    public String toString()
    {
        return "UserDetailVO{" +
               "username='" + username + '\'' +
               ", projectName='" + projectName + '\'' +
               ", remark='" + remark + '\'' +
               ", workhours=" + workhours +
               ", workDate=" + workDate +
               ", reviewFlag=" + reviewFlag +
               '}';
    }
}
